/* 
 * File:   BlockRenderer.h
 * Author: Nick
 *
 * Created on 20 April 2011, 11:10 PM
 */

#ifndef NRPSTG_BLOCKRENDERER_H
#define	NRPSTG_BLOCKRENDERER_H

#include <gl/GL.h>
#include <gl/GLU.h>

#include "Terrain.h"



class BlockRenderer {
public:
    BlockRenderer();
    virtual ~BlockRenderer();

    virtual void draw(Block* block)=0;
private:

};

class NullRenderer : public BlockRenderer {
public:
    NullRenderer();
    virtual ~NullRenderer();

    virtual void draw(Block* block);
private:
};

class CubeRenderer : public BlockRenderer {
public:

 
    CubeRenderer();
    virtual ~CubeRenderer();

    virtual void draw(Block* block);

    

private:
    void init();

    GLuint  _rl_cube;
};



#endif	/* NRPSTG_BLOCKRENDERER_H */

